Deliver useful error on unknown input type.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 17 Jul 2003 03:26:40 +0000 (03:26 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 17 Jul 2003 03:26:40 +0000 (03:26 +0000)
gpsbabel/gpilots.c

index deeef52815beb7aa0fc175d0905c8fc503d087cd..60db2ec29419fa4127a7879700cf5b993e713896 100644 (file)
@@ -282,7 +282,9 @@ data_read(void)
                                        route_add_wpt(track_head, wpt_tmp);
                                        tp++;
                                }
-
+                               break;
+                       default:
+                               fatal(MYNAME ": input record type %d not supported.\n", rec->header.type); 
                }
 #if 0
                if ( be_read32(&rec->elevation) == -100000000 ) {